package com.heima.feign.user;

import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("leadnews-user")
public interface IUserClient {
    /**
     * @Description: 查询用户信息
     * @Date 2023/6/20 16:59
     * @Author 朱传洋
     */
    @PostMapping("api/v1/user/{userId}")
    public ApUser getApUser(@PathVariable Integer userId);
}